/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Logik.Kunde;
import java.util.List;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

/**
 *
 * @author aCid
 */
public class KundeListModel implements ListModel{

    private List<Kunde> kd;
    
    public KundeListModel(List<Kunde> kundeList) {
        this.kd = kundeList;
    
    }
    
    @Override
    public int getSize() {
        return kd.size();
        
    }

    @Override
    public Object getElementAt(int index) {
       return kd.get(index);
    }

    @Override
    public void addListDataListener(ListDataListener l) {
    }

    @Override
    public void removeListDataListener(ListDataListener l) {
    }
    
}
